package com.soriya.nestlive.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.soriya.nestlive.entity.LiveEntity;
import com.soriya.nestlive.entity.PageResult;
import com.soriya.nestlive.entity.param.LiveListParam;
import com.soriya.nestlive.entity.vo.LiveDetailVo;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface LiveService extends IService<LiveEntity> {
    PageResult<LiveEntity> pageQuery(Page<LiveEntity> page, LiveListParam param);

    LiveDetailVo getByChannelId(Long channelId);

    PageResult<LiveDetailVo> getByCategoryId(Long categoryId, Integer current, Integer size);

    PageResult<LiveDetailVo> pageList(Page<LiveDetailVo> page);

    void updateDuration(Long channelId);

    boolean stopStream(Long channelId);

    List<LiveEntity> getHistory(Long channelId);

}
